package edu.bw.param;

import edu.bw.vo.Form;
import lombok.Data;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/form")
public class subForm {
    @PostMapping("/subForm.do")
    public String subForm(Form form){
        System.out.println(form);
        return "success";
    }
    @PostMapping("/subForm2.do")
    public @ResponseBody Form subForm2(@RequestBody Form form){
        System.out.println(form);
        return form;
    }
}
